<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<h1>登录页面</h1>
<h2 th:text="${name}"></h2>
<h2>${name}</h2>

<table border="1">
    <tr>
        <th>新闻id</th>
        <th>新闻标题</th>
        <th>新闻内容</th>
    </tr>
    <tr th:each="news:${list}">
        <td th:text="${news.id}"></td>
        <td th:text="${news.title}"></td>
        <td th:text="${news.content}"></td>
    </tr>

</table>

<a th:href="@{/test}">test.html</a>

<form th:action="@{/commit}" method="post">
    用户名：<input type="text" name="username"><br>
    密码：<input type="text" name="password"><br>
    <input type="submit" value="提交">
</form>

<div>
    <a th:href="@{/file}">上传文件</a>
</div>

</body>
</html>